package org.androidpn.server.service.impl;

import org.androidpn.server.dao.NotificationDao;
import org.androidpn.server.model.Notification;
import org.androidpn.server.service.NotificationService;

import java.util.List;

/**
 * Created by huang on 2017/3/29 0029.
 */
public class NotificationServiceImpl implements NotificationService{

    private NotificationDao notificationDao;

    public void setNotificationDao(NotificationDao notificationDao) {
        this.notificationDao = notificationDao;
    }

    public void saveNotification(Notification notification) {
        notificationDao.saveNotification(notification);
    }

    public List<Notification> findNotificationsByUsername(String username) {
        return notificationDao.findNotificationsByUsername(username);
    }

    public void deleteNotification(Notification notification) {
        notificationDao.deleteNotification(notification);
    }

    public void deleteNotificationByUUID(String uuid) {
        notificationDao.deleteNotificationByUUID(uuid);
    }
}
